package com.jbm.jbmsupplier.zp.factory;

import com.jbm.jbmsupplier.zp.factory.interfacesend.SendAlldate;
import com.jbm.jbmsupplier.zp.factory.interfacesend.SendMessage;

/**
 * Created by 李征 on 2017/5/26.
 */

public class FactotySecndMode implements SendAlldate {
    public FactotySecndMode() {
    }

    @Override
    public SendMessage SetSendalldate(String name) {
        if (name.equals("文本消息")){
          return new SendTextMessage();
        }else if(name.equals("图片消息")){

        }else if (name.equals("语音消息")){


        }

        return null;

    }
}
